/**************************************************************************************************/
/*                                    Global Workings                                             */
/**************************************************************************************************/
var
	/* Lists */
	MuteList = list()
	Banned = list()
	Admins = list("mikau","divinetraveller","deadstarr","evanx")

	/* Main Chat */
	Message = {"<b>Welcome to The Saloon.</b>
Saving is temporarily disabled."}
	Bot_Color = "#083C76"
	ConversationTopic = "No topic"

	/* Lists */
	Chatters
	Active

proc
	findTarget(string)
		for(var/client/c)
			if(c.key == string || c.ckey==string)
				return c
		return null

/*	/* Saves the main lists */
	SaveTheWorld() {
		fdel("Config.sav")
		var/savefile/F2 = new("Chatters/Config.sav")
		F2["MuteList"]<<MuteList
		F2["Banned"]<<Banned
		F2["Admins"]<<Admins
		F2["SuperAdmins"]<<SuperAdmins
	}

	/* Loads the main lists */
	LoadTheWorld() {
		if(fexists("Config.sav")) {
			var/savefile/F2 = new("Chatters/Config.sav")
			F2["MuteList"]>>MuteList
			F2["Banned"]>>Banned
			F2["Admins"]>>Admins
			F2["SuperAdmins"]>>SuperAdmins
		}
	}
*/
	/* Send a world message as the Wench */
	System_WorldMessage(message) {
		world<<"<b>\[</b>[time2text(world.timeofday,"hh:mm:ss")]<b>\] <font color='[html_encode(Bot_Color)]'>@Wench</font></b>: <font color='red'>[message]</font>"
	}

	/* Send a specific user a message as the Wench */
	System_UserMessage(Target, message) {
		Target<<"<b>\[</b>[time2text(world.timeofday,"hh:mm:ss")]<b>\] <font color='[html_encode(Bot_Color)]'>@Wench</font></b>: <font color='red'>[message]</font>"
	}

world {
	name = "The Saloon"
	New() {
		..()
//		LoadTheWorld()
	}

	Del() {
//		SaveTheWorld()
		..()
	}
}

